package cn.tedu._05weibo.pojo.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cglib.core.Local;

import java.time.LocalDateTime;
import java.util.Date;

@Data
public class WeiboDetailVO {
    @ApiModelProperty(value = "微博id")
    private Long id;
    @ApiModelProperty(value = "微博内容")
    private String content;
    @ApiModelProperty(value = "用户昵称")
    private String nickname;
    /*@JsonFormat
    * 调整日期pattern 指定格式[小大小 大小小]*/
    @ApiModelProperty(value = "发送时间",required = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")//"GMT+8
    private Date created;
}
